package com.cloudkinto.service.dic.vo;

import com.cloudkinto.common.utils.StringsUtil;
import lombok.Data;

@Data
public class LanguageValueEntity {
    private Integer id;
    private String value;

    public LanguageValueEntity() {
    }

    public LanguageValueEntity(Integer id, String name) {
        this.id=id;
        this.value=name;
    }
    public LanguageValueEntity(String id, String name) {
        this.id= id == null ? null : Integer.parseInt(id);
        this.value=name;
    }

    public String getValue() {
        return StringsUtil.createI18Message(value);
    }
}
